package sddz.foodmanage.model;

import java.util.List;

/**
 * @Date:2019/7/4
 * @Author:lbb
 */

public class UserStatusBean {

    /**
     * message : 登录成功
     * status_code : 200
     * data : {"user":{"user_id":1,"name":"admin","access":["admin"],"avatar":"/storage/users/1/1/721561912798.png","created_at":"2019-06-23 13:40:27","status":1,"type":2,"supplier_id":5,"service_ended_at":"2019-07-10 00:00:00"},"token":"bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC96amgubmF0YXBwMS5jY1wvYXBpXC9hdXRoXC9sb2dpbiIsImlhdCI6MTU2MjE1NTA3MSwiZXhwIjoxNTYyMTYyMjcxLCJuYmYiOjE1NjIxNTUwNzEsImp0aSI6IktZMjJpenJnS0hJTXFadDgiLCJzdWIiOjEsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.0_FtKkiffPLwc40yTUh9EQebD7SGZnnH62KsHJUER1I"}
     */

    private String message;
    private int status_code;
    public DataBean data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getStatus_code() {
        return status_code;
    }

    public void setStatus_code(int status_code) {
        this.status_code = status_code;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * user : {"user_id":1,"name":"admin","access":["admin"],"avatar":"/storage/users/1/1/721561912798.png","created_at":"2019-06-23 13:40:27","status":1,"type":2,"supplier_id":5,"service_ended_at":"2019-07-10 00:00:00"}
         * token : bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOlwvXC96amgubmF0YXBwMS5jY1wvYXBpXC9hdXRoXC9sb2dpbiIsImlhdCI6MTU2MjE1NTA3MSwiZXhwIjoxNTYyMTYyMjcxLCJuYmYiOjE1NjIxNTUwNzEsImp0aSI6IktZMjJpenJnS0hJTXFadDgiLCJzdWIiOjEsInBydiI6IjIzYmQ1Yzg5NDlmNjAwYWRiMzllNzAxYzQwMDg3MmRiN2E1OTc2ZjcifQ.0_FtKkiffPLwc40yTUh9EQebD7SGZnnH62KsHJUER1I
         */

        private UserBean user;
        private String token;

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public static class UserBean {
            /**
             * user_id : 1
             * name : admin
             * access : ["admin"]
             * avatar : /storage/users/1/1/721561912798.png
             * created_at : 2019-06-23 13:40:27
             * status : 1
             * type : 2
             * supplier_id : 5
             * service_ended_at : 2019-07-10 00:00:00
             */

            private int user_id;
            private String name;
            private String avatar;
            private String created_at;
            private int status;
            private int type;
            private int supplier_id;
            private String service_ended_at;
            private List<String> access;
            //-----------------------------------clc------------------------------------------------
            private int dinner_num;//用餐人数
            //--------------------------------------------------------------------------------------

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getAvatar() {
                return avatar;
            }

            public void setAvatar(String avatar) {
                this.avatar = avatar;
            }

            public String getCreated_at() {
                return created_at;
            }

            public void setCreated_at(String created_at) {
                this.created_at = created_at;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public int getType() {
                return type;
            }

            public void setType(int type) {
                this.type = type;
            }

            public int getSupplier_id() {
                return supplier_id;
            }

            public void setSupplier_id(int supplier_id) {
                this.supplier_id = supplier_id;
            }

            public String getService_ended_at() {
                return service_ended_at;
            }

            public void setService_ended_at(String service_ended_at) {
                this.service_ended_at = service_ended_at;
            }

            public List<String> getAccess() {
                return access;
            }

            public void setAccess(List<String> access) {
                this.access = access;
            }

            public int getDinner_num() {
                return dinner_num;
            }

            public void setDinner_num(int dinner_num) {
                this.dinner_num = dinner_num;
            }
        }
    }
}
